﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEARNREN.COM.Entity;

namespace LEARNREN.COM.UI.Template
{
    public class ShowJobTemplate : HtmlTemplate
    {
        Job jobEntity = null;

        public ShowJobTemplate(string tmpFile, long jobId)
            : base(tmpFile)
        {
            jobEntity = this.groupLogicFactory.JobLogic.GetById(jobId);
        }

        protected override void SetContextData()
        {
            base.SetContextData();
            this.context.State = jobEntity;
            this.context.CatalogueID = jobEntity.CatalogueId;
        }
    }
}
